<template>
	<div>
		<div class="flex bg-white w-full h-full" v-if="URLShow">
			<UserItem class="pt-4 pb-4 overflow-hidden h-full" style="width: 13%; border-right: #eee 1px solid;"></UserItem>
			<UserList class="p-4" style="width: 87%;"></UserList>
		</div>
		<router-view v-if="sonURLShow" class="w-full h-full"></router-view>
	</div>
</template>

<script>
	import UserItem from '@/pages/User/Organization/UserItem'
	import UserList from '@/pages/User/Organization/UserList'
	
	export default {
		name: 'Organization',
		components: {
			UserItem,
			UserList
		},
		computed: {
			URLShow(){
				if(this.$route.meta.auth){
					return true
				} else {
					return false
				}
			},
			sonURLShow(){
				if(!this.$route.meta.auth){
					return true
				} else {
					return false
				}
			}
		},
	}
</script>